package context.config.imports;

import cn.stimd.spring.context.annotation.Configuration;
import cn.stimd.spring.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 模拟@SpringBootApplication注解
 * 导入AutoConfigurationImportSelector，通过模拟SPI机制来加载WebMvcAutoConfiguration配置类
 * <p>
 * Created by Stimd
 * 项目地址：https://gitee.com/stimd/spring-wheel
 * 公众号：Java编程探微
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Configuration
@Import({AutoConfigurationImportSelector.class})
@Inherited
public @interface SpringBootApplication {
}
